## thrift 生成文件： thrift --gen java [文件]

namespace java com.tianbao54.thrift.model

typedef i16 sort
typedef i32 int
typedef i64 long
typedef bool boolean
typedef string String

struct Person {
    1: optional String name,
    2: optional int age,
    3: optional boolean married
}

exception DataException {
    1: optional String message,
    2: optional String callStack,
    3: optional String date
}

service PersonService {
    Person getPersonByPersonName (1: required String name) throws (1: DataException dataException),
    void savePerson (1: Person person) throws (1: DataException dataException)
}